<ng-container [formGroup]="formGroup">
  <div class="flex-1">
    <div>
      密码位数：
      <mat-slider
        formControlName="minlen"
        class="slider"
        [min]="7"
        [max]="32"
        [displayWith]="formatLabel"
        thumbLabel
      ></mat-slider>
    </div>
  </div>
  <div class="form-group row align-items-center">
    <div class="col-3.5 mt-2 ml-3">
        <label for="script">密码复杂度</label>
    </div>
     <div class="col-2">
        <m-switch-checkbox [disabled]="" formControlName="pwd_policy_switch"></m-switch-checkbox>
    </div>
    <div class="ml-4 mt-2">
        <i class="material-icons" [attr.alt]="''" [attr.title]="'策略开启后，密码在格式上必须同时包含英文大写字母、英文小写字母、数字'">error_outline</i>
        <!-- <i class="material-icons" [attr.alt]="''" [attr.title]="'策略开启后，密码在格式上必须同时包含英文大写字母、英文小写字母、数字以及特殊字符等四类字符'">error_outline</i> -->
      </div>
</div>
  <!-- <div>
     abc
  </div> -->
  <!-- <div>
    <mat-checkbox
      formControlName="reject_username"
      [hidden]="formGroup.disabled && !formGroup.value.reject_username"
    >
      密码不能包含用户的账户名
    </mat-checkbox>
  </div>
  <div>
    <mat-checkbox
      *ngIf="formGroup.get('minclass') as minclass"
      [checked]="minclass.value === 2"
      (change)="minclass.setValue($event.checked ? 2 : 0)"
      [disabled]="minclass.disabled"
      [hidden]="formGroup.disabled && formGroup.value.minclass !== 2"
    >
      密码至少包含两种字符组合
    </mat-checkbox>
  </div> -->
</ng-container>
